package jvm.string;

public class TestStringTableSize {
    public static void main(String[] args) throws InterruptedException {
//        System.out.println("测试stringTable常量池的默认大小...");
//        Thread.sleep(1000000);
        //jinfo -flag StringTableSize 6640 ->66535
        //-XX:StringTableSize=10000 uintx StringTableSize the allowed range [ 128 ... 16777216 ]
        testOnlyOne();
    }

    public static void testOnlyOne() {
        System.out.println("");
        System.out.println("1");
        System.out.println("2");
        System.out.println("3");
        System.out.println("4");
        System.out.println("5");

        System.out.println("");
        System.out.println("1");
        System.out.println("2");
        System.out.println("3");
        System.out.println("4");
        System.out.println("5");
    }
}
